<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>固定报表管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/report/bsReport/">固定报表列表</a></li>
		<%-- <shiro:hasPermission name="report:bsReport:edit"><li><a href="${ctx}/report/bsReport/form">固定报表添加</a></li></shiro:hasPermission> --%>
	</ul>
	<form:form id="searchForm" modelAttribute="bsReport" action="${ctx}/report/bsReport/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>报表类型：</label>
				<form:input path="reportType" htmlEscape="false" maxlength="50" class="input-medium"/>
			</li>
			<li><label>报表日期：</label>
				<input name="reportDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					value="<fmt:formatDate value="${bsReport.reportDate}" pattern="yyyy-MM-dd"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
			</li>
			<li><label>单位：</label>
				<form:input path="officeCode" htmlEscape="false" maxlength="32" class="input-medium"/>
			</li>
			<li><label>报表状态：</label>
				<form:input path="reportStatus" htmlEscape="false" maxlength="2" class="input-medium"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>单位</th>
				<th>标题</th>
				<th>报表类型</th>
				<th>报表状态</th>
				<th>报表日期</th>
				<th>审核人</th>
				<th>备注</th>
				<th>创建时间</th>
				<th>创建人</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="bsReport">
			<tr>
				<td>
					${bsReport.officeName}
				</td>
				<td><a href="${ctx}/report/bsReportOutin/list?reportId=${bsReport.id}">
					${bsReport.title}
				</a></td>
				<td>进销存报表<%-- ${bsReport.reportType} --%></td>
				<td>
					${bsReport.reportStatus}
				</td>
				<td>
					<fmt:formatDate value="${bsReport.reportDate}" pattern="yyyy-MM-dd"/>
				</td>
				<td>
					${bsReport.auditor}
				</td>
				<td>
					${bsReport.remarks}
				</td>
				<td>
					<fmt:formatDate value="${bsReport.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					${bsReport.createBy.id}
				</td>
				<td><shiro:hasPermission name="report:bsReport:edit">
    				<a href="${ctx}/report/bsReport/audit?id=${bsReport.id}">审核</a>
    				<%-- <a href="${ctx}/report/bsReport/form?id=${bsReport.id}">修改</a> --%>
					<%-- <a href="${ctx}/report/bsReport/delete?id=${bsReport.id}" onclick="return confirmx('确认要删除该固定报表吗？', this.href)">删除</a> --%>
				</shiro:hasPermission></td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>